package com.niit;

import com.niit.beans.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");

        // 读取 bean定义文件，创建 容器对象
        ApplicationContext context =
                new ClassPathXmlApplicationContext(
                        "spring-beans.xml");

        User user = context.getBean(User.class);
        user.callTeamBuilding();
    }
}